package org.tea.inventory.db.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDateTime;

public class ActivityUser {

    private int id;
    private int newsId; // 活动id
    private int userId; // 参加的会员id
    private LocalDateTime createDate; // 报名时间
    private String userName; // 参加会员的姓名
    private String activityName; // 参加活动名称
    private String photo; // 参加活动的头像
    private String phone; //参加活动人员联系方式
    private String working;//工作地点
    private String address;//邮寄地址
    private String postcode;//邮编
    private String annotation;//注释
    private boolean hiddenPhone;//是否隐藏手机

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getNewsId() {
        return newsId;
    }

    public void setNewsId(int newsId) {
        this.newsId = newsId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public LocalDateTime getCreateDate() {
        return createDate;
    }

    public void setCreateDate(LocalDateTime createDate) {
        this.createDate = createDate;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getActivityName() {
        return activityName;
    }

    public void setActivityName(String activityName) {
        this.activityName = activityName;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

	public String getWorking() {
		return working;
	}

	public void setWorking(String working) {
		this.working = working;
	}

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPostcode() {
        return postcode;
    }

    public void setPostcode(String postcode) {
        this.postcode = postcode;
    }

    public String getAnnotation() {
        return annotation;
    }

    public void setAnnotation(String annotation) {
        this.annotation = annotation;
    }

    public boolean isHiddenPhone() {
        return hiddenPhone;
    }

    public void setHiddenPhone(boolean hiddenPhone) {
        this.hiddenPhone = hiddenPhone;
    }
}
